function rand_filter(){
	var Max_Ind		= 41;
	var str_filter	= '';
	i = Math.floor(Math.random()*Max_Ind);
	switch(i){	
		case 1:
			//box in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=SQUARE,motion=in,enabled=0,Duration=0.60)';			
		break;
		case 2:
			//box out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=SQUARE,motion=out,enabled=0,Duration=0.60)';			
		break;
		case 3:
			//circle in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=CIRCLE,motion=in,enabled=0,Duration=0.60)';			
		break;
		case 4:
			//circle out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=CIRCLE,motion=out,enabled=0,Duration=0.60)';
		break;
		case 5:
			//cross in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=cross,motion=in,enabled=0,Duration=0.60)';
		break;
		case 6:
			//cross out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=cross,motion=out,enabled=0,Duration=0.60)';			
		break;
		case 7:
			//plus in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=plus,motion=in,enabled=0,Duration=0.60)';
		break;
		case 8:
			//plus out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=plus,motion=out,enabled=0,Duration=0.60)';
		break;
		case 9:
			//start in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=star,motion=in,enabled=0,Duration=0.60)';
		break;
		case 10:
			//start out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=star,motion=out,enabled=0,Duration=0.60)';
		break;
		case 11:
			//diamond in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=diamond,motion=in,enabled=0,Duration=0.60)';
		break;
		case 12:
			//diamond out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=diamond,motion=out,enabled=0,Duration=0.60)';
		break;
		case 13:
			//wipe up
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.60)';
		break;
		case 14:
			//wipe down
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.60)';
		break;
		case 15:
			//wipe right
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0,motion=forward,enabled=0,Duration=0.60)';
		break;
		case 16:
			//wipe left
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0,motion=reverse,enabled=0,Duration=0.60)';
		break;
		case 17:
			//blinds up
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=diamond,motion=out,enabled=0,Duration=0.60)';
		break;
		case 18:
			//blinds down 
			str_filter='progid:DXImageTransform.Microsoft.Blinds(bands=8,direction=DOWN,enabled=0,Duration=0.60)';
		break;
		case 19:
			//blinds right
			str_filter='progid:DXImageTransform.Microsoft.Blinds(bands=8,direction=RIGHT,enabled=0,Duration=0.60)';
		break;
		case 20:
			//blinds left
			str_filter='progid:DXImageTransform.Microsoft.Blinds(bands=8,direction=left,enabled=0,Duration=0.60)';
		break;
		case 21:
			//checkerboard up
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=16,squaresY=16,direction=up,enabled=0,Duration=0.60)';
		break;
		case 22:
			//checkerboard down
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=12,squaresY=12,direction=down,enabled=0,Duration=0.60)';
		break;
		case 23:
			//checkerboard right
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=12,squaresY=12,direction=right,enabled=0,Duration=0.60)';
		break;
		case 34:
			//checkerboard left
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=12,squaresY=12,direction=left,enabled=0,Duration=0.60)';
		break;
		case 25:
			//random dissolve
			str_filter='progid:DXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.60)';
		break;
		case 26:
			//split vertical in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=vertical,motion=in,enabled=0,Duration=0.60)';
		break;
		case 27:
			//split vertical in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=vertical,motion=out,enabled=0,Duration=0.60)';
		break;
		case 28:
			//split horizontal in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=horizontal,motion=in,enabled=0,Duration=0.60)';
		break;
		case 29:
			//split horizontal in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=horizontal,motion=out,enabled=0,Duration=0.60)';
		break;
		case 30:
			//strips left down
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=leftdown,enabled=0,Duration=0.60)';
		break;
		case 31:
			//strips left up
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=leftup,enabled=0,Duration=0.60)';
		break;
		case 32:
			//strips right down
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=rightdown,enabled=0,Duration=0.60)';
		break;
		case 33:
			//strips left le
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=rightup,enabled=0,Duration=0.60)';
		break;
		case 34:
			//random bars horuzontal
			str_filter='progid:DXImageTransform.Microsoft.RandomBars(orientation=horizontal,enabled=0,Duration=0.60)';
		break;
		case 35:
			//random bars vetical
			str_filter='progid:DXImageTransform.Microsoft.RandomBars(orientation=vertical,enabled=0,Duration=0.60)';
		break;
		case 36:
			//wheel
			str_filter='progid:DXImageTransform.Microsoft.Wheel(spokes=16,enabled=0,Duration=0.60)';
		break;
		case 37:
			//silde
			str_filter='progid:DXImageTransform.Microsoft.Slide(slideStyle=hide,bands=15,enabled=0,Duration=0.60)';
		break;
		case 38:
			//silde plush
			str_filter='progid:DXImageTransform.Microsoft.Slide(slideStyle=swap,bands=15,enabled=0,Duration=0.60)';
		break;
		case 39:
			//spread
			str_filter='progid:DXImageTransform.Microsoft.Inset(,enabled=0,Duration=0.60)';
		break;
		case 40:
			//picelplate
			str_filter='progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,enabled=0,Duration=0.60)';
		break;
		case 41:
			//fade
			str_filter='progid:DXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.60)';
		break;
		default:
			//random filter
			str_filter='revealTrans(Transition=23,enabled=0,Duration=0.60)';
		break;
	}
	return str_filter;
}

var curImg = 0;
function doTrans(){
	if(curImg == imageArray.length) curImg = 0;
	if(navigator.appName == "Microsoft Internet Explorer"){
		document.images['imagePhoto'].style.filter	= rand_filter();
		imagePhoto.filters[0].apply();
		document.images['imagePhoto'].src				= imageArray[curImg];
		document.getElementById('imageLink').href		= linkArray[curImg];
		document.getElementById('imageLink').title	= titleArray[curImg];
		document.getElementById('imageLink').target	= targetArray[curImg];
		if(document.getElementById('title_link')){
			document.getElementById('title_link').innerHTML	= title_link[curImg];
		}
		imagePhoto.filters[0].play();
	}
	else{
		document.images['imagePhoto'].src				= imageArray[curImg];
		document.getElementById('imageLink').href		= linkArray[curImg];
		document.getElementById('imageLink').title	= titleArray[curImg];
		document.getElementById('imageLink').target	= targetArray[curImg];
		if(document.getElementById('title_link')){
			document.getElementById('title_link').innerHTML	= title_link[curImg];
		}
	}
	curImg++;
}
// Start do Trans
doTrans();